<?php
/**
 * Created by PhpStorm.
 * User: liuguang
 * Date: 2018/11/7
 * Time: 16:20
 * desc:品牌
 */
namespace app\index\controller;

use think\Controller;
use app\index\model\Manage;
class Manages extends Comm
{
	//品牌首页
	 public function index()
    {
        $manage=new Manage();
        $res=$manage->isstatus();
		return view('index',['res'=>$res]);
    }
    //同意审核
    public function add(){
        $manage=new Manage();
        $res=$manage->add(input('id'));
        if ($res)
            $this->success('操作成功！','index');
        else
            $this->error('操作失败！');
    }
    //驳回审核
    public function del(){
        $manage=new Manage();
        $res=$manage->del(input('id'));
        if ($res)
            $this->success('操作成功！','index');
        else
            $this->error('操作失败！');
    }
}
